﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CommonLibrary;
using DBO.Utility;
using ClientDataAccess.PlayerServiceReference;
using DBO;
using DBO.Economy;

namespace ClientDataAccess
{
    public class ClientPlayerHandler
    {
        public ClientPlayerHandler()
        {
            Client = new PlayerServiceReference.SOAPPlayerServiceClient();
        }

        public Resources GetPlayerResources(Player Player)
        {
            return Client.GetPlayerResources(Player.Token);
        }

        public bool BuySlot(Player Player, string type)
        {
            return Client.BuySlot(Player.Token, type);
        }

        public bool SellSlot(Player Player, string type)
        {
            return Client.SellSlot(Player.Token, type);
        }

        public int CountSlots(Player Player, string type)
        {
            return Client.CountSlots(Player.Token, type);
        }

        public string[] GetSquad(Player Player, int size)
        {
            return Client.GetSquad(Player.Token, size);
        }

        public void SetSquad(Player Player, string[] squad, int size)
        {
            Client.SetSquad(Player.Token, squad, size);
        }



        private PlayerServiceReference.SOAPPlayerServiceClient Client;

    }
}
